<template>
    <div>
        <vue-qrcode @decode="decode"/>
         <el-dialog
                v-el-drag-dialog
                :title="commonEditData.title"
                :modal="false"
                fullscreen="true"
                class="dialogClass dialog-vertical"
                style='left:0;top:0;width:100%;'
                center
                :visible.sync="dialogVisible3"
                >
                <common-edit :commonEditData="commonEditData"  @closeWin="closeWins" v-if="dialogVisible3"></common-edit>
                
            </el-dialog>

    </div>
</template>
<script>
import qrcode from '@/components/qrcode.vue';
import CommonEdit  from '../CommonEdit.vue'
export default {
    components: {
        'vue-qrcode': qrcode,
        CommonEdit
    },
    data(){
        return{
            dialogVisible3:false,
             commonEditData:{
                fieldPath:"",
                filename2:"",
                sId:"",
                ids:"",
                param_key:"",
                appid:"",
                title:"",
                params:{},
                sSn:""
            }
        }
    },
    methods:{
        decode(data){
            this.commonEditData.appid="business";
            this.commonEditData.filename2="殡仪馆系统/殡仪服务";
            this.commonEditData.title="殡仪服务";
            this.commonEditData.sSn=data;
            this.dialogVisible3=true;
            var eml=document.getElementsByClassName("el-dialog");
            for(let i=0;i<eml.length;i++){
                console.log(eml[i])
                eml[i].style.left="0px"
                eml[i].style.top="0px"
                console.log(eml[i].style.left,"eml=========================")
            }
             //this.$router.push({path:this.url+"&sSn="+data});
        },
        closeWins(datas){
            this.dialogVisible3=false;
             history.back();
        },
    }
}
</script>
